function serializeToJson(ele){
  // 获取到表单中用户输入的内容
  // [{name: 'email', value: 'yibo@qq.com'}, {name: 'password', value: '123456'}]
  var form = ele.serializeArray();
  var result = {};
  form.forEach(item => {
      result[item.name] = item.value;
  })
  return result;
}